﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="goods_add02.aspx.cs" Inherits="WebSite.admin.product.goods_add02" %>

<%@ Register assembly="CuteEditor" namespace="CuteEditor" tagprefix="CE" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>良臣直销网后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
   
        <script language='javascript' type="text/javascript">
	
	function clicka()
	{
	<% if (Request.QueryString["pid"] != null){}else{%>
	alert("- 商品名称不能为空。\n- 商品分类不能不选。");
	return false;
	<%} %>
	}
	</script>

   <link rel="stylesheet" href="../kindEditor/plugins/code/prettify.css" />
   <script charset="utf-8" src="../kindEditor/kindeditor.js"></script>
	<script charset="utf-8" src="../kindEditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../kindEditor/plugins/code/prettify.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#txtaInstruction', {
	            cssPath: '../kindEditor/plugins/code/prettify.css',
	            uploadJson: '../kindEditor/upload_json.ashx',
	            fileManagerJson: '../kindEditor/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });

	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#txtaContent', {
	            cssPath: '../kindEditor/plugins/code/prettify.css',
	            uploadJson: '../kindEditor/upload_json.ashx',
	            fileManagerJson: '../kindEditor/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=form1]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });
	</script>


</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
    <%if (Request.QueryString["pid"] != null){ %>
  <table Width="98%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="goods_add.aspx?pid=<%=Request.QueryString["pid"]%>">通用信息</a></td>
      <td bgcolor="#C9D2DA"><a href="goods_add02.aspx?pid=<%=Request.QueryString["pid"]%>" class="menu02">详细描述</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add08.aspx?pid=<%=Request.QueryString["pid"]%>">商品参数</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add03.aspx?pid=<%=Request.QueryString["pid"]%>">其他信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add04.aspx?pid=<%=Request.QueryString["pid"]%>">商品相册</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add05.aspx?pid=<%=Request.QueryString["pid"]%>">关联商品</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add06.aspx?pid=<%=Request.QueryString["pid"]%>">配件</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add07.aspx?pid=<%=Request.QueryString["pid"]%>">关联文章</a></td>
    </tr>
  </table>
    <%}else{ %>
  <table Width="98%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="goods_add.aspx">通用信息</a></td>
      <td bgcolor="#C9D2DA"><a href="goods_add02.aspx" class="menu02">详细描述</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add08.aspx">商品参数</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add03.aspx">其他信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add04.aspx">商品相册</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add05.aspx">关联商品</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add06.aspx">配件</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add07.aspx">关联文章</a></td>
    </tr>
  </table>
    <%} %>
  <br />
  <table Width="98%" border="0" cellpadding="3" cellspacing="0">
  <tr><td>简介：</td></tr>
  <tr><td>
  <textarea id="txtaInstruction" cols="100" rows="8"  style="width:100%;height:200px;visibility:hidden;" runat="server"></textarea>
    
  </td></tr>

    <tr><td>简介(手机展示)：</td></tr>
  <tr><td>
 
      <asp:TextBox ID="txtMobileInstiturion" runat="server" Height="54px" 
          MaxLength="100" TextMode="MultiLine" Width="387px"></asp:TextBox>
  </td></tr>

  <tr><td>详细简介：</td></tr>
    <tr>
      <td height="50">
       <textarea id="txtaContent" cols="100" rows="8"  style="width:100%;height:300px;visibility:hidden;" runat="server"></textarea>
      </td>
    </tr>

    <tr>
      <td height="50" align="center">
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
      </tr>
  </table>
</center>
    </div>
    </form>
</body>
</html>
